'use strict';

const Controller = require('egg').Controller;

class HomeController extends Controller {
  async index() {
    const { ctx ,service } = this;
    //ctx.body = service.home.index();
    await ctx.render("home.html");
  }
  async word(){
    const { ctx ,service } = this;
    await ctx.render("word.html");
  }
  async test(){
    const { ctx ,service } = this;
    await ctx.render("test.html");
  }
  async ApiTest(){
    const {ctx,app,service} = this;
    ctx.success("测试接口");
  }
}

module.exports = HomeController;
